import http from "@/api";
import { Rotate, ResPage } from "@/api/interface";
import { ROTATE_PORT } from "@/api/config/servicePort";

export const getRotateList = (params: Rotate.ReqRotate) => {
  return http.get<ResPage<Rotate.ResRotate>>(ROTATE_PORT + `/list`, params);
};

export const addRotate = (params: Rotate.ReqRotate) => {
  return http.post(ROTATE_PORT + `/add`, params);
};

export const editRotate = (params: Rotate.ReqRotate) => {
  return http.post(ROTATE_PORT + `/edit`, params);
};

export const deleteRotateApi = (params: number[]) => {
  return http.post(ROTATE_PORT + `/delete`, params);
};
